﻿@model GameSchool.Models.GameRegistration

@*
@{
    ViewBag.Title = "EnlistStudent";
}

<h2>EnlistStudent</h2>*@
<ul class="breadcrumb">  
	<li><a href="/Home">Forsíða</a> <span class="divider">></span></li> 
	<li class="active">Skrá notanda í leik</li>
</ul>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<div class="well">
	@using (Html.BeginForm()) {
		@Html.ValidationSummary(true)
		<fieldset>
			<legend>Skrá notanda í leik</legend>


			<div class="editor-label">
				@Html.Label("Leikur")
			</div>
			<div class="editor-field">
				@Html.DropDownListFor(model => model.GameID, ViewData["listOfGames"] as SelectList, "Veldu leik...")
				@*@Html.EditorFor(model => model.GameID)*@
				@Html.ValidationMessageFor(model => model.GameID)
			</div>



			<div class="editor-label">
				@*@Html.LabelFor(model => model.UserID)*@
			</div>
			<div class="editor-field">
				@Html.Hidden("UserID", ViewData["notandi"])
            
				@Html.ValidationMessageFor(model => model.UserID)
			</div>

			@*@Html.DropDownListFor(model => model.GameID, ViewData["listOfGames"] as SelectList, "Veldu...")*@
			@*   53635bac-c38f-4dcf-9b32-dd9a36c6ada3    prófa þennan*@
			<p>
				<div class="form-actions">
					<input type="submit" class="btn btn-primary" vaslue="Vista" />
				</div>
			</p>
		</fieldset>
	}
</div>

